package com.ruoyi.applet.mapper;

import com.ruoyi.applet.domain.AppletExamUser;

import java.util.List;

/**
 * examUserMapper接口
 *
 * @author PengFei Deng
 * @date 2022-04-14
 */
public interface AppletExamUserMapper {
    /**
     * 查询examUser
     *
     * @param joinId examUser主键
     * @return examUser
     */
    AppletExamUser selectAppletExamUserByJoinId(Long joinId);

    /**
     * 查询examUser列表
     *
     * @param appletExamUser examUser
     * @return examUser集合
     */
    List<AppletExamUser> selectAppletExamUserList(AppletExamUser appletExamUser);

    /**
     * 新增examUser
     *
     * @param appletExamUser examUser
     * @return 结果
     */
    int insertAppletExamUser(AppletExamUser appletExamUser);

    /**
     * 修改examUser
     *
     * @param appletExamUser examUser
     * @return 结果
     */
    int updateAppletExamUser(AppletExamUser appletExamUser);

    /**
     * 删除examUser
     *
     * @param joinId examUser主键
     * @return 结果
     */
    int deleteAppletExamUserByJoinId(Long joinId);

    /**
     * 批量删除examUser
     *
     * @param joinIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteAppletExamUserByJoinIds(Long[] joinIds);

    int deleteAppletExamUserByExamId(Long examId);


    AppletExamUser selectAppletExamUserByPhone(String userPhone);


    Integer getUserAllTrueSum(Long userId);
}
